package com.cjzuji.rental.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * @author bag
 * @version V1.0
 * @date 2025/6/13 9:41
 * @since 1.0
 */
@Data
@Accessors(chain = true)  //链式调用 可以连续调用setter方法而不需要每次都创建新的对象实例
@TableName("order_bill")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderBill {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "order_id")
    private long orderId;

    //orders_id
    @TableField(value = "orders_id")
    private String ordersId;

    @TableField(value = "real_pay_time")
    private String realPayTime;

    @TableField(value = "term")
    private int term;

    @TableField(value = "real_pay_capital")
    private double realPayCapital;

    @TableField(value = "capital")
    private double capital;

    @TableField(value = "month_repayment")
    private double monthRepayment;

    @TableField(value = "zfb_discount_amt")
    private double zfbDiscountAmt;

    @TableField(value = "ovdue_buyout_amt")
    private double ovdueBuyoutAmt;

    @TableField(value = "write_offAmt")
    private double writeOffAmt;

    @TableField(value = "reduce_amt")
    private double reduceAmt;

    @TableField(value = "overdue_amount")
    private double overdueAmount;

    @TableField(value = "repay_date_fmt")
    private String repayDateFmt;

    @TableField(value = "real_pay_trade_id")
    private String realPayTradeId;

    @TableField(value = "repay_status_str")
    private String repayStatusStr;

    //还款时间
    @TableField(value = "real_repay_time")
    private String realRepayTime;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;
}
